package com.byxy.ssm.service.impl;

import com.byxy.ssm.mapper.ItemsMapper;
import com.byxy.ssm.pojo.Items;
import com.byxy.ssm.service.ItemsService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional
public class ItemsServiceImpl implements ItemsService {
    @Resource
    private ItemsMapper itemsMapper;
    @Override
    public void save(Items item) {
        itemsMapper.save(item);
    }

    @Override
    public List<Items> find() {
        return itemsMapper.find();
    }
}
